package com.example.light.system.common;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * description:  错误信息枚举类规定：编写时按照模块分类，每个模块写到一起，便于修改和维护返回状态根据Http状态码定义来 <br>
 * @author: lfy
 */
@NoArgsConstructor
@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {

    //公共模块
    UNAUTHORIZED(401,"未认证"),
    FORBIDDEN(401,"未授权"),
    ILLEGAL_VALUE(404,"参数非法"),
    OPERATION_FAILED(500,"操作失败");

    int value;
    String message;
}
